<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />
    <link rel="stylesheet" href="__PUBLIC__/module/manage/css/visualization.css" />
</block>
<block name="bdoy">
    <body>
    <div class="easyui-tabs" style="" fit="true">
        <div title="基础信息" style="padding:10px">
            <table>
                <tr>
                    <td>
                        调蓄池名称：
                    </td>
                    <td>
                        {$cur['ps_name']}
                    </td>
                </tr>
                <tr>
                    <td>
                        调蓄池地址：
                    </td>
                    <td>
                        {$cur['ps_addr']}
                    </td>
                </tr>
                <tr>
                    <td>
                        执勤人员：
                    </td>
                    <td>
                        {:filter_id_to_ralname($cur['csdt_opr'])}
                    </td>
                </tr>
                <tr>
                    <td>
                        当前执勤人员：
                    </td>
                    <td>
                        {:D('MobileAdmin')->get_working_names_by_ids($cur['ps_opr'])}
                    </td>
                </tr>
            </table>
        </div>
        <div title="设备情况" style="padding:10px">
            <div class="pump-row">
                <ul class="pump-ul">
                    <volist name="pumps" id="pump">
                        <li>
                            <a href="#">
                                <div class="pump-div">
                                    <img class="pump-img" src="__PUBLIC__/module/manage/image/drain_pump.jpg">
                                    <div class="pump-font"><span>{$pump['p_name']}({$cur['ps_name']})</span></div>
                                    <img class="pump-dymic-icon" src="{:filter_deivce_status_icon(D('CsdtPumpRecord')->get_last_one($pump['id']))}">
                                </div>
                            </a>
                        </li>
                    </volist>
                    <volist name="macs" id="mac">
                        <li>
                            <a  href="#">
                                <div class="pump-div">
                                    <img class="pump-img" src="__PUBLIC__/module/manage/image/machine.jpg">
                                    <div class="pump-font"><span>{$mac['scrmach_name']}({$cur['ps_name']})</span></div>
                                    <img class="pump-dymic-icon" src="{:filter_deivce_status_icon(D('CsdtMachineRecord')->get_last_one($mac['id']))}">
                                </div>
                            </a>
                        </li>
                    </volist>
                    <volist name="gates" id="gate">
                        <li>
                            <a  href="#">
                                <div class="pump-div">
                                    <img class="pump-img" src="__PUBLIC__/module/manage/image/gate.jpg">
                                    <div class="pump-font"><span>{$gate['gate_name']}({$cur['ps_name']})</span></div>
                                    <img class="pump-dymic-icon" src="{:filter_deivce_status_icon(D('CsdtGateRecord')->get_last_one($gate['id']))}">
                                </div>
                            </a>
                        </li>
                    </volist>
                </ul>
            </div>

        </div>

    </div>
    </body>
</block>
<block name="footExtendJs">

</block>
